game:menu.o game1.o libmenu.a libgame1.so
	gcc game.c -o game -L. -lmenu -lgame1
	LD_LIBRARY_PATH=. ./game
menu.o:menu.c menu.h
	gcc -c menu.c
game1.o:game1.c game1.h
	gcc -c -fPIC game1.c
libmenu.a:menu.o
	ar crv libmenu.a menu.o
libgame1.so:game1.o
	gcc -fPIC -shared -o libgame1.so game1.o
clean:
	rm -rf *.o *~ game
